import * as getterTypes from './getters-types'

export default {// 相当于组件中的计算属性 , 用于提供获取state的状态数据
  [getterTypes['GET_USER_SEX']] (state) { // state 就是仓库中的state
    return state.sex ? '男' : '女'
  },
  [getterTypes['GET_USER_NAME']] (state) {
    return state.username
  },
  [getterTypes['GET_USER_AGE']] (state) {
    return state.age
  }
}
